//package com.utils.spring;
//
//import static java.lang.Boolean.FALSE;
//
//import javax.persistence.Basic;
//import javax.persistence.Column;
//import javax.persistence.Entity;
//import javax.persistence.GeneratedValue;
//import javax.persistence.GenerationType;
//import javax.persistence.Id;
//import javax.persistence.Index;
//import javax.persistence.Table;
//import javax.persistence.UniqueConstraint;
//
//import org.joda.time.DateTime;
//import org.springframework.data.annotation.CreatedDate;
//import org.springframework.data.annotation.LastModifiedDate;
//
//import com.fasterxml.jackson.annotation.JsonSubTypes.Type;
//
//import lombok.Data;
//import lombok.ToString;
//
//@ToString 
//@Data
//@Entity
//@Table(schema = "toutiao", name = "apply_cash",
//indexes={@Index(columnList="uuid", name="IDXAC_uuid"),
//        @Index(columnList="apply_no", name="IDXAC_apply_no") //普通索引
//		@Index(columnList = "tenementId,depotCode")//组合索引
//
//		},
//uniqueConstraints = {
//	    @UniqueConstraint(columnNames = {"apply_no"})   //唯一索引，索引类型是Unique
//	    }
//)
//public class ApplyCash {
//    @Id
//    @GeneratedValue(strategy = GenerationType.AUTO) //mysql数据库表ID需设置为auto_increment
//    @Column(name = "id", nullable = false, updatable = false)
//    private long id;
//    
//    @Column(name = "apply_no", nullable = false, updatable = false,
//    		columnDefinition="varchar(150) default '' ")
//    private String applyNo;
//    
//    @Column(name = "uuid", nullable = false, updatable = false,
//    		columnDefinition="varchar(50) default '' ")
//    private String uuid; 
//    
//    @Column(name = "ip", nullable = false, updatable = false,
//    		columnDefinition="varchar(150) default '' ")
//    private String ip;
//    
//	@Column(name = "account_id", nullable = false, updatable = true)
//	private long accountId;
//	
//	@Column(name = "tasklog_id", nullable = false, updatable = true)
//	private long taskLogId;
//    
//	@Column(name = "amount", nullable = false, updatable = true)
//	private int amount;
//    
//	@Column(name = "status", nullable = false, updatable = true)
//	private int status;
//    
//    @Column(name = "remark", nullable = true, updatable = true,
//    		columnDefinition="varchar(250) default '' ")
//    private String remark;
//    
//    @CreatedDate
//    @Type(type = "org.jadira.usertype.dateandtime.joda.PersistentDateTime")
//    @Basic(optional = false)
//    @Column(name = "ctime", nullable = false, updatable = false)
//    private DateTime ctime;
//
//    @LastModifiedDate
//    @Type(type = "org.jadira.usertype.dateandtime.joda.PersistentDateTime")
//    @Basic(optional = false)
//    @Column(name = "ltime", nullable = false, updatable = true)
//    private DateTime ltime;
//
//    @Column(name = "deleted", nullable = false, updatable = true)
//    private Boolean deleted = FALSE;
//
//    @Type(type = "org.jadira.usertype.dateandtime.joda.PersistentDateTime")
//    @Basic(optional = true)
//    @Column(name = "deletedTime", nullable = true, updatable = true)
//    private DateTime deletedTime;
//}
